﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Eqwww.Config
{
    public class EmailConfig
    {
        [Required(ErrorMessage ="本项不能为空")]
        [Display(Name ="来源姓名")]
        public string FromName { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "来源地址")]
        public string FromAddress { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "SMTP服务器")]
        public string SmtpServer { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "SMTP服务器端口")]
        public int SmtpPort { get; set; }

        [Display(Name = "使用SSL")]
        public bool SSL { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "认证用户")]
        public string Login { get; set; }

        [Required(ErrorMessage = "本项不能为空")]
        [Display(Name = "认证授权码")]
        public string AuthCode { get; set; }
    }
}
